
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class GuildGuildanceCfg : public ManualSingleton <GuildGuildanceCfg>
{
	friend ManualSingleton <GuildGuildanceCfg>;
public:
	GuildGuildanceCfg();
	~GuildGuildanceCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const GuildGuildanceCfgInfo *GetGuildGuildanceCfgInfo(int32_t guidanceId);
	const GuildGuildanceCfgMap *GetGuildGuildanceCfgMap() { return &m_GuildGuildanceCfgMap; }
private:
	GuildGuildanceCfgMap m_GuildGuildanceCfgMap;
};

#define  g_MakeGuildGuildanceCfgTable() (GuildGuildanceCfg::Instance())
#define  g_GetGuildGuildanceCfgTable() (GuildGuildanceCfg::GetInstance())
#define  g_DelGuildGuildanceCfgTable() (GuildGuildanceCfg::Destroy())